<?php
/**
 * Created by PhpStorm.
 * User: wangye
 * Date: 19-3-5
 * Time: 上午10:02
 */

function array_mer() {
    $return = [];
    $arrays = func_get_args();
//    var_dump($arrays);
    foreach ($arrays as $array) {
        if (is_array($array)) {
            foreach ($array as $value ) {
                $return[] = $value;
            }
        }
    }
    return $return;
}

print_r(array_mer([1],[1,2]));